{% extends 'base.html' %}

{% block title %}Contact me{% endblock %}

{% block meta %}
{# Tell search engines to not index this page - it has nothing worth indexing #}
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />

{% endblock %}

{% block content %}

<h1>Contact me</h1>

<p>For bookings or any information about me, please use this page.</p>

<p>The fields marked in <strong>bold</strong> must be filled in.</p>


{% if form.errors or not captcha_valid %}
	<div class="errorwarning">Your message contained one or more errors. Please fix these and re-submit it.</div>
{% endif %}

<form method="post" action="">
{{ form }}
<p style="margin:30px 0 10px 0;">Please also type the following 2 words exactly as they appear. This is a check to ensure that you are a human and not a spam robot.</p>

{% if not captcha_valid %}
<div class="errorwarning">You did not type in correctly the two words. Please try again!</div>
{% endif %}

{% if ExternalRecaptcha %}
	<div style="height: 150px; width: 500px;">
	<div style="position:absolute;">
	{{ html_captcha }}
	</div>
	</div>
{% else %}
	{# The following dimensions apply to the no-javascript version which is larger #}
	<div style="width:500px;height:300px;background:green;">
	ReCaptcha widget (dev version)
	</div>
{% endif %}

<input type="submit" value="Send message" style="margin-top:20px;"/>
</form>

<script type="text/javascript">
//<![CDATA[
document.forms[0][0].focus();
//]]>
</script>


{% endblock %}





